#include <bits/stdc++.h>
using namespace std;

signed main() {
    int x,y,z;
    cin >> x >> y >> z;
    int num = max(max(x,y),z);
    cout << max(num,x+y+z-num);
}